how to find natural number in python